-
-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce devServerRunning
hook
#1564
base: master
Are you sure you want to change the base?
Conversation
|
They are useful for other plugins to tap into certain points of the build process. In this case a `devServerRunning` hook is introduced, which would allow a 3rd party plugin to, for example, display a QR code with the address the app is running on once the dev server started.
Do any other projects have hooks like this in place? |
Hi @ForsakenHarmony, thanks for taking a look into this PR. I have not looked at other projects, and honestly I am not sure which projects you are referring to, sorry. I would gladly check if you point me in the right direction. Let me give you some context as to where this PR is coming from. I am using At first I thought about introducing the QR code generation into So that's the rationale for this PR. Do you see a place for this feature in the project, either as a hook or generating the QR code directly in Again, thanks a lot for taking the time to review my PR, and for all the great work you are all putting into this project :) |
Hi @ForsakenHarmony, any comments on this? I would appreciate a response to know whether I should work on it further or just close it. |
@tooxie sorry for the late reply I meant other clis like next.js / vue cli / create react app Do they have a similar hook or another way to achieve this? Also, I have to say |
What kind of change does this PR introduce?
A build-related feature.
Did you add tests for your changes?
Yes.
Summary
Custom hooks are useful for other plugins to tap into certain points of the build process. In this case a
devServerRunning
hook is introduced which would allow a 3rd party plugin to, for example, display a QR code with the address the app is running on once the dev server started:Usage:
Does this PR introduce a breaking change?
No.
Other information